package com.example.service;

import com.example.entity.BillType;
import com.example.mapper.TypeMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: huang
 * @Date: 2021/11/1 17:29
 * @Description:
 */
@Service
public class TypeService {

    @Resource
    private TypeMapper typeMapper;

    /**
     * 查询所有类型账单
     * @return
     */
    public List<BillType> list() {
        return typeMapper.selectAll();
    }

}
